package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 配货单对象 t_delivery
 *
 * @author xwj
 * @date 2024-11-10
 */
@TableName("t_delivery")
@Data
public class Delivery extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 配货单名称
     */
    @Excel(name = "配货单名称")
    @ApiModelProperty("配货单名称")
    private String title;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    @ApiModelProperty("商品id")
    private Long customerId;

    @TableField(exist = false)
    private String customerName;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("日期")
    private Date deliverDate;

    /**
     * 合计金额
     */
    @Excel(name = "合计金额")
    @ApiModelProperty("合计金额")
    private Double totalAmount;

    @ApiModelProperty("成本金额")
    private Double totalBuyAmount;

    /**
     * 检菜员
     */
    @Excel(name = "检菜员")
    @ApiModelProperty("检菜员")
    private String nameJcy;

    /**
     * 送货员
     */
    @Excel(name = "送货员")
    @ApiModelProperty("送货员")
    private String nameShy;

    /**
     * 管理员
     */
    @Excel(name = "管理员")
    @ApiModelProperty("管理员")
    private String nameGly;

    @ApiModelProperty("签收员")
    private String nameQsy;

    /** 创建人id */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /** 更新人id */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;

    private Integer line;

    // 查询条件 或 其他参数
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private List<DeliveryDetail> detailList;
    @TableField(exist = false)
    List<Long> deleteIds;

}
